<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>练习1</title>
	</head>
	<body>
		<script type="text/javascript">
			var str=["Aweff","adwdw","vsafe","dwadw","ioinio","dwfwffa"];
			var count=0;
			for(var i=0;i<str.length;i++){
				if(str[i].indexOf("a")!=-1||str[i].indexOf("A")!=-1){
					count++;
				}
			}
			document.write("在以下字符中："+"<br />");
			for(var i in str){
				document.write(str[i]+"<br />")
			}
			document.write("共有"+count+"个字符串包含a或A")
		</script>
	</body>
</html>
